package stat;

import parser.SimpleNode;
import parser.Token;

public class DeclarationException extends Exception{
	/**
	 * 
	 */
	private static final long serialVersionUID = 3147451964347075874L;

	private String msg;
	public DeclarationException(String message, SimpleNode node){
		super(message);
		Token tk = node.jjtGetFirstToken();
		this.msg = message + "\nat line " + tk.beginLine + ", column " + tk.beginColumn + "\n";
	}
	
	public String getMsg() {
		return this.msg;
	}
}

